package com.liu.nb.entity;

import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 巡检任务和巡检人的中间表
 * </p>
 *
 * @author liuziyi
 * @since 2021-08-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class PatroltaskUser implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 巡检任务id
     */
    private String partolId;

    /**
     * 执行人id
     */
    private Integer userId;

    /**
     * 用户表实体，多对一
     */
    @TableField(exist = false)
    private SysUser sysUser;

    /**
     * 巡检任务实体，一对多
     */
    @TableField(exist = false)
    private Patroltask patroltask;

}
